﻿using Microsoft.AspNetCore.Components;

namespace BBCore.Server.Components.Pages.Components
{
    /// <summary>
    /// 直接复制BootstrapInput的代码,再加个onfocusout事件转换为去空格并大写
    /// </summary>
    /// <typeparam name="TValue"></typeparam>
    public partial class BootstrapInputToUpper<TValue>
    {
        /// <summary>
        /// 获得/设置 是否为只读 默认 false
        /// </summary>
        [Parameter]
        public bool Readonly { get; set; }

        private string? ReadonlyString => Readonly ? "true" : null;
    }
}
